ABC155 B - Papers, Please
提出
code: python
n = int(input())
a = list(map(int, input().split()))
APPROVED = True
for i in a:
if (i % 2 == 0):
if (i % 3 == 0):
continue
if (i % 5 == 0):
continue
APPROVED = False
break
if (APPROVED):
print("APPROVED")
else:
print("DENIED")